package com.hzy.generator.service;

import com.hzy.generator.entity.DomainBo;

public interface GeneratorMongoService {

    void initTableInfo(String entityFileNames);

    /**
     * 生成mybatis代码
     *
     * @throws Exception
     */
    void startRouterCreate(String entityFileNames) throws Exception;

    /**
     * service接口
     * @param domain
     * @param templateName
     */
    public void buildRouterService(DomainBo domain, String templateName);

    /**
     * service实现
     * @param domain
     * @param templateName
     */
    public void buildRouterServiceImpl(DomainBo domain, String templateName);

    /**
     * controller
     * @param domain
     * @param templateName
     */
    public void buildRouterController(DomainBo domain, String templateName);

    /**
     *
     * @throws Exception
     */
    void startManagementCreate(String entityFileNames) throws Exception;

    /**
     * dao接口
     * @param domain
     * @param templateName
     */
    public void buildManagementDao(DomainBo domain, String templateName);

    /**
     * dao实现
     * @param domain
     * @param templateName
     */
    public void buildManagementDaoImpl(DomainBo domain, String templateName);

    /**
     * service接口
     * @param domain
     * @param templateName
     */
    public void buildManagementService(DomainBo domain, String templateName);

    /**
     * service实现
     * @param domain
     * @param templateName
     */
    public void buildManagementServiceImpl(DomainBo domain, String templateName);

    /**
     * controller
     * @param domain
     * @param templateName
     */
    public void buildManagementRemoteController(DomainBo domain, String templateName);

    /**
     * controller
     * @param domain
     * @param templateName
     */
    public void buildManagementFrontController(DomainBo domain, String templateName);
}
